package com.ruoyi.service.impl;

import java.util.List;

import com.ruoyi.domain.BasisFrequencyConverterType;
import com.ruoyi.mapper.BasisFrequencyConverterTypeMapper;
import com.ruoyi.service.IBasisFrequencyConverterTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 变频器类型Service业务层处理
 * 
 * @author wangzebing
 * @date 2025-07-05
 */
@Service
public class BasisFrequencyConverterTypeServiceImpl implements IBasisFrequencyConverterTypeService
{
    @Autowired
    private BasisFrequencyConverterTypeMapper basisFrequencyConverterTypeMapper;

    /**
     * 查询变频器类型
     * 
     * @param id 变频器类型主键
     * @return 变频器类型
     */
    @Override
    public BasisFrequencyConverterType selectBasisFrequencyConverterTypeById(Long id)
    {
        return basisFrequencyConverterTypeMapper.selectBasisFrequencyConverterTypeById(id);
    }

    /**
     * 查询变频器类型列表
     * 
     * @param basisFrequencyConverterType 变频器类型
     * @return 变频器类型
     */
    @Override
    public List<BasisFrequencyConverterType> selectBasisFrequencyConverterTypeList(BasisFrequencyConverterType basisFrequencyConverterType)
    {
        return basisFrequencyConverterTypeMapper.selectBasisFrequencyConverterTypeList(basisFrequencyConverterType);
    }

    /**
     * 新增变频器类型
     * 
     * @param basisFrequencyConverterType 变频器类型
     * @return 结果
     */
    @Override
    public int insertBasisFrequencyConverterType(BasisFrequencyConverterType basisFrequencyConverterType)
    {
        return basisFrequencyConverterTypeMapper.insertBasisFrequencyConverterType(basisFrequencyConverterType);
    }

    /**
     * 修改变频器类型
     * 
     * @param basisFrequencyConverterType 变频器类型
     * @return 结果
     */
    @Override
    public int updateBasisFrequencyConverterType(BasisFrequencyConverterType basisFrequencyConverterType)
    {
        return basisFrequencyConverterTypeMapper.updateBasisFrequencyConverterType(basisFrequencyConverterType);
    }

    /**
     * 批量删除变频器类型
     * 
     * @param ids 需要删除的变频器类型主键
     * @return 结果
     */
    @Override
    public int deleteBasisFrequencyConverterTypeByIds(Long[] ids)
    {
        return basisFrequencyConverterTypeMapper.deleteBasisFrequencyConverterTypeByIds(ids);
    }

    /**
     * 删除变频器类型信息
     * 
     * @param id 变频器类型主键
     * @return 结果
     */
    @Override
    public int deleteBasisFrequencyConverterTypeById(Long id)
    {
        return basisFrequencyConverterTypeMapper.deleteBasisFrequencyConverterTypeById(id);
    }

    @Override
    public List<BasisFrequencyConverterType> findAll() {
        return basisFrequencyConverterTypeMapper.findAll();
    }
}
